package com.qf.boot.service.provider.impl;


import com.qf.boot.service.api.SiteService;
import org.apache.dubbo.config.annotation.Service;

@Service(version = "timeout",timeout = 4000)
public class TimeoutSiteServiceImpl implements SiteService {
    @Override
    public String getName(String name) {
        try {Thread.sleep(5000);} catch (InterruptedException e) {e.printStackTrace();}
        System.out.println("serving");
        return "timeout site service "+ name;
    }
}
